<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/assets/css/text.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/main.css" rel="stylesheet" type="text/css">
    <link href="/assets/css/content.css" rel="stylesheet" type="text/css">
    <script language="javascript" src="/assets/js/common.js"></script>
    <script language="javascript" src="/assets/js/general.js"></script>
    <script language="JavaScript" type="text/JavaScript">
    </script>
    <style>
        #title {
            width: 92%;
            border: 0px;
            margin-bottom: 10px;
        }

        #title td {
            text-align: center;
            height: 20px;
            line-height: 150%
        }

        #title div {
            background-image: url(/assets/img/dot_02.gif);
            background-position: left top;
            background-repeat: no-repeat;
            margin: 0 auto;
            padding-left: 20px;
            text-align: left;
            width: 10%;
            font-size: 15px;
            font-weight: bold;
            color: #CC0000;
            letter-spacing: 2px;
        }
    </style>
    <style media="print">
        .nobtn{
            display: none;
        }
    </style>
</head>
<body>

<table cellspacing="0" cellpadding="0" id="title" align="center">
    <tbody>
    <tr>
        <td nowrap="nowrap">
            <div> 山东宜利达流体设备有限公司产品出库单</div>
        </td>
    </tr>
    </tbody>
</table>
<table cellpadding="0" cellspacing="0" class="subtitle">
    <tbody>
    <form action="/halfproductUpload.do" method="post">
        <tr align="center">
            <td colspan="14" class="subtitle"><input type="button" value="打印" onclick="print()" class="nobtn"/></td>
            <td id="rightbg">&nbsp;</td>
        </tr>
    </form>
    </tbody>
</table>
<table cellspacing="0" cellpadding="0" class="datalist" align="center">
    <tbody>
    <tr>
        <th align="center">预览</th>
        <th align="center">序号</th>
        <th align="center">产品编号</th>
        <th align="center">产品名称</th>
        <th align="center">送货单位</th>
        <th align="center">规格</th>
        <th align="center">商标</th>
        <th align="center">压力</th>
        <%--<th align="center">单位</th>--%>
        <th align="center">时间</th>
        <th align="center">数量</th>
        <th align="center">凭证编号</th>
        <th align="center">包装</th>
        <th align="center">备注</th>
    </tr>
    <c:forEach items="${Allselllist}" var="s">
        <tr>
            <td height="25" align="center"><a href="/sellview.do?h_ticketno=${s.h_ticketno}" target="_blank"><img src="/assets/img/view.gif"></a></td>
            <td height="25" align="center">${s.id}</td>
            <td height="25" align="center">${s.h_no}</td>
            <td height="25" align="center">${s.c_name}</td>
            <td height="25" align="center">${s.h_name}</td>
            <td height="25" align="center">${s.h_size}</td>
            <td height="25" align="center">${s.h_r}</td>
            <td height="25" align="center">${s.h_n}</td>
                <%--<td height="25" align="center">${s.h_unit}</td>--%>
            <td height="25" align="center">${s.h_senddate}</td>
            <td height="25" align="center">${s.h_num}</td>
            <td height="25" align="center">${s.h_ticketno}</td>
            <td height="25" align="center">${s.usepackage}</td>
            <td height="25" align="center"><input type="text" value="${s.remark}" disabled/></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</form>
</body>
</html>